<admintpl file="header1"/>
 </head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Job/index')}">职位列表</a></li>
		</ul>
		<form class="well form-search pd0"  method="post" action="" id="form1">
			<table class="table table-condensed">
				<tbody>
					<tr>
						<td>兼职编号：</td>
						<td><input type="text" name="a.job_no" class="wd200" value="{$formget.a_job_no}"></td>
						<td>兼职名称：</td>
						<td><input type="text" name="a.name" class="wd200" value="{$formget.a_name}"></td>
						<td>类型名称：</td>
						<td><input type="text" name="b.name" class="wd200" value="{$formget.b_name}"></td>
						<td>兼职地点：</td>
						<td><input type="text" name="a.place" class="wd200" value="{$formget.a_place}"></td>
					</tr>
					<tr>
						<td>公司名称：</td>
						<td><input type="text" name="d.com_name" class="wd200" value="{$formget.d_com_name}"></td>
						<td>城市名称：</td>
						<td><input type="text" name="a.city" value="{$formget.a_city}" class="wd200"></td>
						<td>兼职状态</td>
						<td>
							<select class="select2-default" name="a.status">
								<option value=""  <if condition="empty($formget['a_status'])">selected</if> >全部</option>
								<option value="1" <if condition="$formget.a_status eq 1">selected</if> >未审核</option>
								<option value="2" <if condition="$formget.a_status eq 2">selected</if> >通过</option>
								<option value="3" <if condition="$formget.a_status eq 3">selected</if> >驳回</option>
							</select>
						</td>
						<td></td>
						<td></td>
					</tr>
					<tr>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td></td>
						<td><input type="submit" class="btn btn-primary" onclick="javascript:form1.action='{:U("Job/index")}';" value="搜索" /></td>
						<td></td>
					</tr>
				</tbody>
			</table>
		</form>
		<form class="js-ajax-form" action="" method="post">
			<div class="table-actions">
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/publish_again')}" type="submit">重新发布</button>
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/refresh')}" type="submit">刷新</button>
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/pass')}" type="submit">审核</button>
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/refuse')}" type="submit">驳回</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
					<th th width="10">
					<label>
					<input class="js-check-all" type="checkbox" data-checklist="js-check-x" data-direction="x">
					</label>
					</th>
						<th width="20">城市名称</th>
						<th width="20">兼职编号</th>
						<th width="80">兼职名称</th>
						<th width="20">兼职类型</th>
						<th width="50">兼职地点</th>
						<th width="10">招聘人数</th>
						<th width="10">已招人数</th>
						<th width="50">公司名称</th>
						<th width="10">查看人数</th>
						<th width="10">上岗人数</th>
						<th width="10">发布日期</th>
						<th width="10">兼职状态</th>
						<th width="2">权重</th>
						<th width="30">操作</th>
					</tr>
				</thead>
				<?php
						$status=array('1'=>'未审核','2'=>'通过','3'=>'驳回','4'=>'删除');
				?>
				<foreach name="list" item="vo">
				<tr>
					<td>
						<input class="js-check" type="checkbox" title="ID:{$vo.id}" value="{$vo.id}" name="ids[]" data-xid="js-check-x" data-yid="js-check-y">
					</td>
				      	<td>{$vo.city_name}</td>
						<td>{$vo.job_no}</td>
						<td>{$vo.name}</td>
						<td>{$vo.job_type}</td>
						<td>{$vo.place}</td>
						<td><empty name="vo[emp_num_notsure]">
							{$vo.emp_num}
							<else/>
							{$vo.emp_num_notsure}
						   </empty>
						</td>
						<td>{$vo.finish_num}</td>
						<td>{$vo.com_name}</td>
						<td>{$vo.have_seen_num}</td>
						<td>{$vo.working_num}</td>
						<td>{$vo.create_time}</td>
						<td>{$status[$vo['status']]}</td>
						<td>{$vo.top_weight}</td>
					<td>
						<if condition="$vo.top_weight eq 0">
						<a class="js-ajax-option" data-msg="确定要置顶吗?" href="{:U('Job/toTop',array('id'=>$vo['id']))}">置顶</a>
						</if>
						<if condition="$vo.top_weight neq 0">
						<a class="js-ajax-option" data-msg="确定要取消置顶吗?" href="{:U('Job/cacletop',array('id'=>$vo['id']))}">取消</a>
						</if>
						<a href="{:U('Job/detail',array('id'=>$vo['id']))}">详情</a>
						<a class="js-ajax-delete" href="{:U('Job/delete',array('id'=>$vo['id']))}">删除</a>
						
					</td>
				</tr>
				</foreach>
				<tfoot>
					<tr>
					<th width="10">
					<label>
					<input class="js-check-all" type="checkbox" data-checklist="js-check-x" data-direction="x">
					</label>
					</th>
						<th width="20">城市名称</th>
						<th width="20">兼职编号</th>
						<th width="80">兼职名称</th>
						<th width="20">兼职类型</th>
						<th width="50">兼职地点</th>
						<th width="10">招聘人数</th>
						<th width="10">已招人数</th>
						<th width="50">公司名称</th>
						<th width="10">查看人数</th>
						<th width="10">上岗人数</th>
						<th width="10">发布日期</th>
						<th width="10">兼职状态</th>
						<th width="2">权重</th>
						<th width="30">操作</th>
					</tr>
				</tfoot>
			</table>
			<div class="table-actions">
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/publish_again')}" type="submit">重新发布</button>
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/refresh')}" type="submit">刷新</button>
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/pass')}" type="submit">审核</button>
				<button data-subcheck="true"  class="btn btn_submit  btn-primary btn-small J_ajax_submit_btn" formaction="{:U('Job/refuse')}" type="submit">驳回</button>
			</div>
			<div class="pagination">{$Page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>